package cn.huang.dao;



import cn.huang.pojo.Order;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();

    //------------------------------------------------------------------------------------------------------

    //根据条件分页查询
    public Page<Order> pageQueryByCondition(String queryString);

    //取消预约
    void updateOrderStatusById(Integer id);

    //确认预约
    void updateConfirmOrderStatusById(Integer id);

    //根据id删除套餐
    void deleteOrderById(Integer id);
}
